package com.hqx.processcontrol;

public class MethodTest {
    public static void main(String[] args) {
        Order o1 = new Order();
        System.out.println(o1);
        o1.orderId = 1001;
        System.out.println(o1.orderId);
        Order o2 = o1;
        System.out.println(o2);
        o2.orderId = 1002;
        System.out.println(o2.orderId);
        System.out.println(o1.orderId);
    }


    //

}

class Order {
    public int orderId;
}
